package com.chengzhi.structure;

import java.util.Random;

/**
 * @description: avl 测试
 * @author: ruanchengzhi
 * @create: 2020-03-17 10:34
 **/
public class AVLTest {
    public static void main(String[] args) {
       /* Random random = new Random();
        AVL<Integer> avl = new AVL<>();
        for (int i = 1; i <= 3; i++) {
            avl.add(i);
        }
        System.out.println(avl.isBalance());
        System.out.println(avl.getSize());
        for (int i = 0; i < 4000; i++) {
            avl.deleteNode(i);
        }
        System.out.println(avl.isBST());
        System.out.println(avl.isBalance());
        System.out.println(avl.getSize());*/

    }
}
